//#include "slave.h"
#int_SSP
void  SSP_isr(void)
{
     byte incoming, state;
     state = i2c_isr_state ();
     if (state < 0x80)      //Master is sending data
     {
	     printf("Master is sending data\r\n");
             incoming = i2c_read ();
	     printf("Incoming: %d\r\n", incoming);
             if (state == 1)
                  printf("I received address\r\n");   //First received byte is address
             if (state == 2)
                  printf("I received data\r\n");    //Second received byte is data
      }
      if (state == 0x80)      //Master is requesting data
           printf("Master is requesting data\r\n");
}
